<?php
declare(strict_types=1);

namespace App\Repository;

interface RepositoryInterface
{
    public function find($id);
    public function findOneBy(array $criteria);
    public function findAll(array $criteria = []);
    public function create(array $data);
    public function update($id, array $data): bool;
    public function delete($id): bool;
    public function paginate(int $page = 1, int $perPage = 30): array;
}